/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.childcare.entities;

import com.aptech.childcare.components.PropertyIndex;

/**
 *
 * @author Xuan Hieu
 */
public class Activities implements PropertyIndex {

    private int activeID = -1;
    private String name;
    private float fees;
    private String note;
    private String lastError;

    /**
     * @return the activeID
     */
    public int getActiveID() {
        return activeID;
    }

    /**
     * @param activeID the activeID to set
     */
    public void setActiveID(int activeID) {
        this.activeID = activeID;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the fees
     */
    public float getFees() {
        return fees;
    }

    /**
     * @param fees the fees to set
     */
    public void setFees(float fees) {
        this.fees = fees;
    }

    /**
     * @return the lastError
     */
    public String getLastError() {
        return lastError;
    }

    /**
     * @param lastError the lastError to set
     */
    public void setLastError(String lastError) {
        this.lastError = lastError;
    }

    /**
     * @return the note
     */
    public String getNote() {
        return note;
    }

    /**
     * @param note the note to set
     */
    public void setNote(String note) {
        this.note = note;
    }

    /**
     *
     * @param index
     * @return
     */
    public Object getPropertyValue(int index) {
        String value = "";
        switch (index) {
            case 1:
                value = String.valueOf(this.getActiveID());
                break;
            case 2:
                value = this.getName();
                break;
            case 3:
                value = String.valueOf(this.getFees());
                break;
            case 4:
                value = this.getNote();
                break;
        }
        return value;
    }

    public void setPropertyValue(int index, Object value) {
    }

    public Class getPropertyClass(int index) {
        return String.class;
    }
}
